using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace B.S.BataBase.Domain.Hosp
{
    /// <summary>
    /// 医院实体
    /// </summary>
    [Table("Hospital")]
    public class Hospital : BaseEntity
    {
        /// <summary>
        /// 医院名称
        /// </summary>
        [Required]
        [StringLength(100)]
        public string HospitalName { get; set; } = string.Empty;
        /// <summary>
        /// 医院等级
        /// </summary>
        [StringLength(20)]
        public string HospitalLevel { get; set; } = string.Empty;
        /// <summary>
        /// 医院类型
        /// </summary>
        [StringLength(20)]
        public string HospitalType { get; set; } = string.Empty;
        /// <summary>
        /// 医院图片
        /// </summary>
        [StringLength(500)]
        public string HospitalImage { get; set; } = string.Empty;
        /// <summary>
        /// 是否推荐（0-否，1-是）
        /// </summary>
        public bool IsRecommended { get; set; }
        /// <summary>
        /// 医生数量
        /// </summary>
        public int DoctorCount { get; set; }
        /// <summary>
        /// 科室数量
        /// </summary>
        public int DepartmentCount { get; set; }
        /// <summary>
        /// 科室字符串
        /// </summary>
        [StringLength(200)]
        public string DepartmentStrings { get; set; } = string.Empty;

        /// <summary>
        /// 医院地址(省)
        /// </summary>
        [StringLength(200)]
        public string HospitalProvince { get; set; } = string.Empty;
        /// <summary>
        /// 医院地址（市）
        /// </summary>
        [StringLength(200)]
        public string HospitalCity { get; set; } = string.Empty;
        /// <summary>
        /// 医院详细地址
        /// </summary>
        [StringLength(200)]
        public string HospitalAddress { get; set; } = string.Empty;
        /// <summary>
        /// 联系电话
        /// </summary>
        [StringLength(20)]
        public string ContactPhone { get; set; } = string.Empty;
        /// <summary>
        /// 医院简介
        /// </summary>
        [StringLength(500)]
        public string HospitalIntroduction { get; set; } = string.Empty;
        /// <summary>
        /// 上传人
        /// </summary>
        [StringLength(50)]
        public string Uploader { get; set; } = string.Empty;
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadTime { get; set; }=DateTime.Now;
    }
} 